-- GENERATED SPELL FOR [Ahn'kahar Swarmer] --


function spell0_30338(pUnit, Event) --@Sprint,Self--
pUnit:FullCastSpellOnTarget(56354,pUnit)
pUnit:RegisterEvent('Sorts_30338', 15311, 1)
end

function Sorts_30338(pUnit, Event)
local choix_sorts_30338 = math.random(0, 0)
if choix_sorts_30338 == 0 then
pUnit:RegisterEvent('spell0_30338', 1, 1)
end
end

function mob30338_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_30338', math.random(1500, 3000), 1)
end

function mob30338_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30338_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30338_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(30338, 1, 'mob30338_Action')
RegisterUnitEvent(30338, 2, 'mob30338_Leave')
RegisterUnitEvent(30338, 3, 'mob30338_Kill')
RegisterUnitEvent(30338, 4, 'mob30338_Die')
